package com.example.base.mapper;

import com.example.base.domain.ZhiHuAnswer;
import com.example.base.domain.ZhiHuArticle;
import com.example.base.domain.ZhiHuFans;
import com.example.base.domain.ZhiHuTrend;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ZhiHuExtMapper {
    long countAnswerByExample(@Param("user") String user, @Param("link") String link, @Param("today") String today);

    ZhiHuAnswer getAnswerByUserAndTitle(@Param("user") String user, @Param("link") String link, @Param("today") String today);

    List<ZhiHuAnswer> getYesterdayAnswerByUser(@Param("user") String user, @Param("today") String today);

    long countArticleByExample(@Param("user") String user, @Param("link") String link, @Param("today") String today);

    ZhiHuArticle getArticleByUserAndTitle(@Param("user") String user, @Param("link") String link, @Param("today") String today);

    List<ZhiHuArticle> getYesterdayArticleByUser(@Param("user") String user, @Param("today") String today);

    long countTrendByExample(@Param("user") String user, @Param("time") String time);

    long countFansByExample(@Param("user") String user, @Param("time") String time);

    ZhiHuTrend getTrendByUserAndTime(@Param("user") String user, @Param("time") String time);

    ZhiHuFans getFansByUserAndTime(@Param("user") String user, @Param("time") String time);
}
